package com.grad.webstudy.controller;

import com.grad.webstudy.annota.ApiAuthorization;
import com.grad.webstudy.constants.AuthConstants;
import com.grad.webstudy.service.AuthorityService;
import com.grad.webstudy.vo.AuthVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @Author: zjf
 * @Date: 2020/2/2 15:16.
 */

@RestController
@RequestMapping("/auth")
public class AuthController {

    @Autowired
    private AuthorityService authorityService;


    @GetMapping("/getAllAuth")
//    @ApiAuthorization(auth = AuthConstants.AUTH_QUERY)
    public List<AuthVo> getAuthDetail(){
        return authorityService.queryAll();
    }
}
